﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter08.Code02
{
    public class CupOfCoffee : IHotDrink, IDisposable
    {
        private string brand;
        private string beanType;
        private bool instant;
        private bool milk;
        private string description;
        private byte sugar;

        public string Brand
        {
            get { return brand; }
            set { brand = value; }
        }

        public string BeanType
        {
            get { return beanType; }
            set { beanType = value; }
        }

        public bool Instant
        {
            get { return instant; }
            set { instant = value; }
        }

        public bool Milk
        {
            get { return milk; }
            set { milk = value; }
        }

        public byte Sugar
        {
            get { return sugar; }
            set { sugar = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public CupOfCoffee()
        {

        }

        public CupOfCoffee(string brand)
        {
            this.brand = brand;
        }

        public byte AddSugar(byte amout)
        {
            return sugar += amout;
        }

        public void Dispose()
        {
            GC.Collect();
        }
    }
}
